package com.zengjianjun.push.msg.config;

import com.zengjianjun.push.msg.platform.PushMsgClient;
import com.zengjianjun.push.msg.platform.wecom.WeComClient;
import com.zengjianjun.push.msg.properties.PushMsgProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zengjianjun
 */
@Configuration
@EnableConfigurationProperties({PushMsgProperties.class})
public class PushMsgAutoConfiguration {

    @Bean
    public PushMsgClient pushMsgClient() {
        return new PushMsgClient();
    }

    @Bean
    public WeComClient weComClient() {
        return new WeComClient();
    }
}
